
import axios from 'axios'

//获取歌词
export const getSongLyric = (id) =>axios.get('/api/lyric?id='+id)
//获取每个歌手单曲
export const getSongerPlaysLists = (id)=>axios.get('/api/artists?id='+id)
//获取歌手榜
export let getSongerLists =()=>axios.get('/api/toplist/artist')
//首页获取轮播图
export let getBanner =()=>axios.get('/api/banner?type='+2)
//首页获取推荐歌单详情
export let getRecommendPlaylistDetils=(id)=>axios.get('/api/playlist/detail?id='+id)
//首页获取推荐歌单
export let getRecommendPlaylist=()=>axios.get('/api/related/playlist?id='+1)
//获取音乐Url
export let getSongUrl =(id)=>axios.get('/api/song/url?id='+id)
// 获取热搜接口
export let getHotkey = () => axios.get('/api/search/hot')
//获取搜索接口
export let getSearch = (keywords) => axios.get('/api/search?keywords='+keywords)
